package com.ruoyi.eqmonitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.eqmonitor.domain.OptDeviceMonitorAnalyseData;
import com.ruoyi.eqmonitor.domain.OptDeviceMonitorLastData;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Map;


/**
 * @author ruoyi
 * @date 2022-11-25
 */
public interface OptDeviceMonitorAnalyseDataMapper extends BaseMapper<OptDeviceMonitorAnalyseData>{
    List<OptDeviceMonitorAnalyseData> selectLastDataByDeviceCode(@Param("deviceCode") String deviceCode);

    List<OptDeviceMonitorAnalyseData> selectLastDataList();
    
    List<Map<String, Object>> getDeviceMonitorConfigByCode(String deviceCode);
}
